public class text {
    public static void drawMap(Shape shape){
        shape.draw();
        shape.calcArea();
        System.out.println(shape.getArea());
    }
    public static void main(String[] args) {
        drawMap(new Rect(2,3));
        drawMap(new RtTriangle(2,3,4));
        drawMap(new Circle(3));




    }


}
